package endpoint;

import javax.xml.ws.Endpoint;

import local.ThirdPartServerImpl;

public class ThirdPartPublisher {
	public static final String PATH = "/ws/thirdpartpublisher";

	public static void main(String[] args) {

		ThirdPartServerImpl server = new ThirdPartServerImpl(args[2]);
		
        String ADRESSE = "http://" + args[0] + ":" + args[1] + PATH;

		Endpoint.publish(ADRESSE, server);
		System.out.println("Service publié a l'adresse : " + ADRESSE);
		System.out.println("Theard server created ...");
	}
}
